import java.io.FileReader;
import java.io.IOException;

public class day_06_IO_FileReader_02 {
    public static void main(String[] args) throws IOException {
        // 创建文件读取对象
        FileReader fileReader = new FileReader("1.txt");
        // 读取数据
        char[] chars = new char[2];
        int len;
        while ((len = fileReader.read(chars)) != -1) {
            System.out.print(new String(chars, 0, len));
        }
        fileReader.close();
    }
}
